import kiRequest from "..";

export function registerItem(sportId: number, athleteId: number) {
  return kiRequest.post({
    url:`/register/${sportId}/athlete/${athleteId}`
  })
}

export function createAthlete(data:any) {
  return kiRequest.post({
    url: '/athletes',
    data
  })
}
export function editeAthlete(athleteId:number,data:any) {
  return kiRequest.patch({
    url: `/athletes/${athleteId}`,
    data
  })
}
export function getRegisteredItemsByAthleteId(athleteId: number) {
  return kiRequest.get({
    url:`/register/${athleteId}`
  })
}

export function removeRegister(sportId: number, athleteId: number) {
  return kiRequest.delete({
    url:`/register/item/${sportId}/${athleteId}`
  })
}